package org.bonorsoft.modules.control.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.bonorsoft.modules.control.entity.Places;
import org.bonorsoft.modules.control.mapper.PlacesMapper;
import org.bonorsoft.modules.control.service.IPlacesService;
import org.bonorsoft.modules.control.vo.PlacesVo;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 四闲场所
 * @Author: WilliamYe
 * @Date:   2021-04-16
 * @Version: V1.0
 */
@Service
public class PlacesServiceImpl extends ServiceImpl<PlacesMapper, Places> implements IPlacesService {

    @Override
    public IPage<PlacesVo> paging(Page<Places> page, QueryWrapper<Places> queryWrapper) {
        return this.baseMapper.paging(page, queryWrapper);
    }

    @Override
    public List<PlacesVo> listing(QueryWrapper<Places> queryWrapper) {
        return this.baseMapper.listing(queryWrapper);
    }

    @Override
    public int saveBatchPhoto(List<PlacesVo> list) {
        return this.baseMapper.saveBatchPhoto(list);
    }
}
